package com.ruoyi.system.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 供应商信息管理对象 supplier_management
 *
 * @author ruoyi
 * @date 2025-03-19
 */
public class SupplierManagement extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 供应商唯一编号（规则：SUP+年月+3位序列号）
     */
    private String supplierId;

    /**
     * 供应商全称
     */
    private String supplierName;

    /**
     * 供应商品清单（JSON格式）
     */
    @Excel(name = "供应商品清单", readConverterExp = "J=SON格式")
    private String supplyGoods;

    /**
     * 综合评估等级
     */
    private String supplierRating;

    public void setSupplierId(String supplierId) {
        this.supplierId = supplierId;
    }

    public String getSupplierId() {
        return supplierId;
    }

    public void setSupplierName(String supplierName) {
        this.supplierName = supplierName;
    }

    public String getSupplierName() {
        return supplierName;
    }

    public void setSupplyGoods(String supplyGoods) {
        this.supplyGoods = supplyGoods;
    }

    public String getSupplyGoods() {
        return supplyGoods;
    }

    public void setSupplierRating(String supplierRating) {
        this.supplierRating = supplierRating;
    }

    public String getSupplierRating() {
        return supplierRating;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("supplierId", getSupplierId())
                .append("supplierName", getSupplierName())
                .append("supplyGoods", getSupplyGoods())
                .append("supplierRating", getSupplierRating())
                .append("remark", getRemark())
                .append("updateTime", getUpdateTime())
                .append("updateBy", getUpdateBy())
                .append("createTime", getCreateTime())
                .append("createBy", getCreateBy())
                .toString();
    }
}
